@echo off

set Server=192.168.0.89
set Database=POCashout_SKYNET
set user=test_ms_sql
set pass=123
set Credentials=-U %user% -P %pass%
if .%Username%.==.. set Credentials=-E

for /F %%i in (task.txt) do call :RUN_ONE %%i

goto END

:RUN_ONE

@echo filling %1.csv
sqlcmd -S %Server% -d %Database% %Credentials% %Crypt% -s, -W -u -i .\in\%1.sql | findstr /V /C:"-" /B > .\out\%1.csv

:END